import request from "@/utils/request"

export const getVideo = (data) => {
  return request({
    url:`eduservice/video/getVideo/${data}`,
    method:'get'
  })
}

export const addVideo = (data) => {
  return request({
    url:`eduservice/video/addVideo`,
    method:'post',
    data
  })
}

export const updateVideo = (data) => {
  return request({
    url:`eduservice/video/updateVideo`,
    method:'put',
    data
  })
}

export const deleteVideo = (data) => {
  return request({
    url:`eduservice/video/deleteVideo/${data}`,
    method:'delete'
  })
}

export const deleteAlyVod = (data) => {
  return request({
    url:`eduvod/video/removeAlyVideo/${data}`,
    method:'delete'
  })
}

export default { getVideo, addVideo, updateVideo, deleteVideo, deleteAlyVod }